package com.example.demo.model;

import lombok.Data;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author shkstart
 * @create 2023-02-16-14:30
 */

@Data
@ConfigurationProperties(prefix = "student2")
@Component
public class Student {
    private int id;
    private String name;
    private int age;
}
